<template>
  <div style="border: 1px solid black; padding: 20px">
    <div>父组件：</div>
    <Child
      :a="a"
      :b="111"
      @getChildInfo="getChildInfo"
      @xxx="
        () => {
          console.log('事件xxx')
        }
      "
    ></Child>
  </div>
</template>
<script setup lang="ts">
import Child from './ChildComponent.vue'
import { ref } from 'vue'
let a = ref('props传入的参数')
let getChildInfo = (e: string) => {
  console.log('子组件自定义事件 ====> e', e)
}
</script>
<style scoped></style>
